<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
  <link rel="stylesheet" href="${ctx}/js/cluetip/jquery.cluetip.css" type="text/css" />

<script src="${ctx}/js/cluetip/jquery.cluetip.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">

          var pageTotalPages = "1";
          var pageNo = "";
        $(document).ready(function() {
        	
        	  $('.cluetip-link').cluetip({sticky: true,width:500, closePosition: 'title', arrows: true,ajaxCache:false});
        	var pageTotalPages = $("#pageTotalPages").val();
            var pageNo = $("#pageNo").val();
            $("#pager").pager({ pagenumber: pageNo, pagecount: pageTotalPages, buttonClickCallback: PageClick });
        });

        PageClick = function(pageclickednumber) {
            $("#pager").pager({ pagenumber: pageclickednumber, pagecount: pageTotalPages, buttonClickCallback: PageClick });
           // $("#result").html("Clicked Page " + pageclickednumber);
            jumpPage(pageclickednumber);
        }
       
    </script>
</head>
<body>
<form action="weeklydiary-write" method="post" id="main">
<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="page.order" id="order" value="${page.order}"/>
<input type="hidden" id="pageTotalPages"  value="${page.totalPages}"/>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/>提交周记</h1>
<fieldset class="fs_ys" style="width: 800px">
<legend>查询</legend>
<table align="center" id="contentTable" class="table_ys_input" >
	<tr>
		<td nowrap>教师姓名&nbsp;</td>
		<td><input type="text" name="teacherName" value="${teacherName}"/></td>
		<td nowrap>题目名称&nbsp;</td>
		<td colspan="">
			<input type="text" name="titile" value="${titile}"/>
		&nbsp;</td>
		
		<td><center><input type="submit"  value="  查询  "/></center></td>
	</tr>
</table>

</fieldset>
<s:if test="thesis != null && thesisFile.thesisStatus >= 33">
<table id="contentTable" class="table_ys tableColor">
	<tr>
		<th nowrap="nowrap" colspan="">序号</th>
		<th nowrap="nowrap"><a href="javascript:sort('titile','asc')">题目</a></th>
		<th nowrap="nowrap"><a href="javascript:sort('teacherName','asc')">教师名称</a></th>
		<th nowrap="nowrap">教师职称</th>
		<th nowrap="nowrap">学生姓名</th>
		<th nowrap="nowrap">操作</th>
	</tr>
	<tr>
		<td>${st.index + 1 }&nbsp;</td>
		<td><a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!input?id=${thesis.id }">${thesis.titile }</a>&nbsp;</td>
		<td>${thesis.teacherName }&nbsp;</td>
		<td>${thesis.teacherPost }&nbsp;</td>
		<td>${thesis.studentName }&nbsp;</td>
		<td>
			<tc:timeControler authName="中 期">
				<tc:timeControler authName="第1~2周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=1&wid=<s:property value="thesis.weeklydiaryMap[1L].id"/>">1~2周</a>
				</tc:timeControler>
		<s:if test="thesis != null && thesisFile.thesisStatus >= 38">				
				<tc:timeControler authName="第3~4周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=3&wid=<s:property value="thesis.weeklydiaryMap[3L].id"/>">3~4周</a>
				</tc:timeControler>
				<tc:timeControler authName="第5~6周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=5&wid=<s:property value="thesis.weeklydiaryMap[5L].id"/>">5~6周</a>
				</tc:timeControler>
				<tc:timeControler authName="第7~8周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=7&wid=<s:property value="thesis.weeklydiaryMap[7L].id"/>">7~8周</a>
				</tc:timeControler>
				<tc:timeControler authName="第9~10周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=9&wid=<s:property value="thesis.weeklydiaryMap[9L].id"/>">9~10周</a>
				</tc:timeControler>
				<tc:timeControler authName="第11~12周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=11&wid=<s:property value="thesis.weeklydiaryMap[11L].id"/>">11~12周</a>
				</tc:timeControler>
				<tc:timeControler authName="第13~14周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=13&wid=<s:property value="thesis.weeklydiaryMap[13L].id"/>">13~14周</a>
				</tc:timeControler>
				<tc:timeControler authName="第15~16周">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=15&wid=<s:property value="thesis.weeklydiaryMap[15L].id"/>">15~16周</a>
				</tc:timeControler>
				<tc:timeControler authName="总结">
					<a class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" href="weeklydiary-write!diary?id=${thesis.id }&diaryType=20&wid=<s:property value="thesis.weeklydiaryMap[20L].id"/>">总结</a>
				</tc:timeControler>
		</s:if>
				</tc:timeControler>
		&nbsp;</td>
	</tr>
</table>
<div align="center" id="pager" ></div>
</s:if>
</form>
</body>

</html>